package com.liyiruo.beans;

import com.liyiruo.pojo.HelloWorld;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liyiruo
 * @Description
 * @Date 2023/3/23 下午3:39
 */
@Configuration
public class Mybeans {

    @Bean("zhujie")
    @Qualifier
    public HelloWorld getHelloWorld(){
        HelloWorld world = new HelloWorld();
        world.setMessage("注解");
        return world;
    }

}
